<?php
require_once ('libraryfiles/config.php');
$content = 'create_account.php';
$include = '
<script src="' . base_url . 'js/jquery.validate.js" type="text/javascript"></script>
';

require_once TMP_USER_PATH;

$error = isset($_GET['error']) ? $_GET['error'] : '';
?>

<script type="text/javascript">
    function display(obj, id, id1) {
        var txt = obj.value;
        document.getElementById(id).style.display = 'none';
        document.getElementById(id1).style.display = 'block';
        if (txt != 0) {
            document.getElementById(id).style.display = 'block';
            document.getElementById(id1).style.display = 'none';
        }
    }
    $().ready(function() {
        /*click on province to get location*/
        $("#District").change(function() {
            var gid = $('option:selected', this).attr('data-gps');
            showAddress(gid);
        });
        /*end click on province to get location*/

        /*email validate*/
        jQuery.validator.addMethod("email", function(value, element)
        {
            return this.optional(element) || /^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z.]{2,5}$/i.test(value);
        }, "<?php echo $lang['EMAILSMSS']; ?>");
        /*end email validate*/
        jQuery.validator.addMethod('integer', function(value, element, param) {
            return this.optional(element) || /^[0-9-+]+$/.test(value);
        }, 'Please enter a non zero integer value!');
        $.validator.addClassRules("required", {
            required: true
        });
        $('#registerForm').validate({
            rules: {
                accounttype: "required",
                first_name: "required",
                lastname: "required",<?php if (empty($_GET['provider'])): ?>
                user_pass: {
                    required: true,
                    minlength: 6
                },
                confirm_password: {
                    required: true,
                    minlength: 6,
                    equalTo: "#user_pass"
                },<?php endif;?>
                email: {
                    required: true,
                    email: true
                },
                policy: {
                    required: true
                },<?php if (empty($_GET['provider'])): ?>
                security_code: {
                    required: true
                },<?php    endif;?>
                phone: {
                    integer: true
                },
                mobile: {
                    required: true,
                    integer: true
                },
                txt_state: {
                    required: true,
                },
                selectionDistrict: {
                    required: true,
                }
            },
            messages: {
                first_name: "<?php echo $lang['INPUTFIRSTNAMME']; ?>",
                last_name: "<?php echo $lang['INPUTLASTNAME']; ?>",
                username: {
                    required: "Please enter a username",
                    minlength: "Your username must consist of at least 2 characters"
                },<?php if (empty($_GET['provider'])): ?>
                user_pass: {
                    required: "<?php echo $lang['INPUTPASSWORD']; ?>",
                    minlength: "<?php echo $lang['INPUT_PASSWORD_MIN']; ?>"
                },
                confirm_password: {
                    required: "<?php echo $lang['INPUTPASSWORD']; ?>",
                    minlength: "<?php echo $lang['INPUT_PASSWORD_MIN']; ?>",
                    equalTo: "<?php echo $lang['INPUTVERIFYPASSWORD']; ?>"
                },<?php endif;?>
                email: "<?php echo $lang['EMAILSMSS']; ?>",
                mobile: "<?php echo $lang['PLEASE_CORRECT_NUMBER']; ?>",
                phone: "<?php echo $lang['PLEASE_CORRECT_NUMBER']; ?>",
                policy: "<?php echo $lang['POLICY_AGREE']; ?>"
            }
        });
        /*Get Disrtict*/
        $("#Phovince").change(function()
        {
            var id = $(this).val();
            var dataString = 'id=' + id;
            var gid = $('option:selected', this).attr('data-id');
            showAddress(gid);
            $('#loading').show();
            $.ajax
                    ({
                        type: "POST",
                        url: "<?php echo base_url; ?>account/ajax_district.php?action=byprovince",
                        data: dataString,
                        cache: false,
                        success: function(html)
                        {
                            $("#District").html(html);
                            $("#District").removeAttr("disabled");
                            $('#loading').hide();
                        }
                    });
        });
        /*end Get Disrtict*/
        /*Check email exist*/
        $("#email").blur(function()
        {
            var id = $(this).val();
            var dataString = 'id=' + id;
            $.ajax
                    ({
                        type: "POST",
                        url: "<?php echo base_url; ?>account/ajax_district.php?action=checkemail",
                        data: dataString,
                        cache: false,
                        success: function(html)
                        {
                            if (html == 1) {
                                $("#mailcheck").show();
                                $("#mailcheck").html('<div class="alert alert-error"><?php echo $lang['EMAILALEXIST']; ?></div>');
                            } else {
                                $("#mailcheck").hide();
                                //$("#mailcheck").html('<div class="alert alert-success"><?php echo $lang['EMAILALEXIST']; ?></div>');
                            }
                        }
                    });
        });
        /*Check email exist by socheat ngann*/
    });

    /*validate phone number*/
    function validatePhone() {
        var a = document.getElementById(mobile).value;
        var filter = /^[0-9-+]+$/;
        if (filter.test(a)) {
            return true;
        }
        else {
            return false;
        }
    }
    /*end validate phone number*/
</script>


<!--social-->
<?php
$user_data = NULL;
if (!empty($_GET['provider']) && ($_GET['provider'] == "Facebook")) {
// change the following paths if necessary 
    $config = dirname(__FILE__) . '/hybridauth/config.php';
    require_once ("hybridauth/Hybrid/Auth.php");
// check for erros and whatnot
    $error = "";

    if (isset($_GET["error"])) {
        $error = '<b style="color:red">' . trim(strip_tags($_GET["error"])) . '</b><br /><br />';
    }

// if user select a provider to login with
// then inlcude hybridauth config and main class
// then try to authenticate te current user
// finally redirect him to his profile page
    if (isset($_GET["provider"]) && $_GET["provider"])
        : try {
            // create an instance for Hybridauth with the configuration file path as parameter
            $hybridauth = new Hybrid_Auth($config);
            $connected_adapters_list = $hybridauth->getConnectedProviders();
            // set selected provider name 
            $provider = @ trim(strip_tags($_GET["provider"]));

            // try to authenticate the selected $provider
            $adapter = $hybridauth->authenticate($provider);
            // grab the user profile
            $user_data = $adapter->getUserProfile();

            $account_from = $adapter->id;
            $provider_uid = $user_data->identifier;
            $email = $user_data->email;
            $first_name = $user_data->firstName;
//for user
// preg_match('/([a-zA-Z0-9\-\._\+]+@[a-z0-9A-Z\-\._]+\.[a-zA-Z]+)/', $email, $regex);
// $handle = array_shift(explode('@', $regex[1]));
// $handle = preg_replace( "#[^a-zA-Z0-9 ]#", "", $handle);
            $username = $email;
            $last_name = $user_data->lastName;
            $display_name = $user_data->displayName;

            $website_url = $user_data->webSiteURL;
            $profile_url = $user_data->profileURL;
            $photo_url = $user_data->photoURL;
            $gender = $user_data->gender;
            $age = $user_data->age;
            $birth_day = $user_data->birthDay;
            $birth_month = $user_data->birthMonth;
            $birth_year = $user_data->birthYear;
            $phone = $user_data->phone;
            $address = $user_data->address;
//$country   = $user_data->country;
            $country = !empty($country) ? $user_data->country : '';
            $region = $user_data->region;
            $city = $user_data->city;
            $zip = $user_data->zip;

            // if okey, we will redirect to user profile page 
            //$hybridauth->redirect("check.php?provider=$provider");

            if (!$hybridauth->isConnectedWith($provider)) {
                // redirect him back to login page
                header("Location: ../login.php?error=Your are not connected to $provider or your session has expired");
            }
        } catch (Exception $e) {
            // In case we have errors 6 or 7, then we have to use Hybrid_Provider_Adapter::logout() to 
            // let hybridauth forget all about the user so we can try to authenticate again.
            // Display the recived error, 
            // to know more please refer to Exceptions handling section on the userguide
            switch ($e->getCode()) {
                case 0 :
                    $error = "Unspecified error.";
                    break;
                case 1 :
                    $error = "Hybriauth configuration error.";
                    break;
                case 2 :
                    $error = "Provider not properly configured.";
                    break;
                case 3 :
                    $error = "Unknown or disabled provider.";
                    break;
                case 4 :
                    $error = "Missing provider application credentials.";
                    break;
                case 5 :
                    $error = "Authentification failed. The user has canceled the authentication or the provider refused the connection.";
                    break;
                case 6 :
                    $error = "User profile request failed. Most likely the user is not connected to the provider and he should to authenticate again.";
                    $adapter->logout();
                    break;
                case 7 :
                    $error = "User not connected to the provider.";
                    $adapter->logout();
                    break;
            }

            // well, basically your should not display this to the end user, just give him a hint and move on..
            $error .= "<br /><br /><b>Original error message:</b> " . $e->getMessage();
            $error .= "<hr /><pre>Trace:<br />" . $e->getTraceAsString() . "</pre>";
        }
    endif;
}
?>

<!--Error-->
<?php
$CURRENT_URL = W_ROOT;
if (!empty($_GET ["return_url"])) {
    $return_url = @ $_GET ["return_url"];
} else {
    $return_url = $CURRENT_URL;
}
if (isset($_GET['error']) != "") {
    $error = isset($_GET['error']) ? $_GET['error'] : '';
    switch ($error) {
        case 1 :
            $message = $lang['INPUTFIRSTNAMME'];
            break;
        case 2 :
            $message = $lang['INPUTLASTNAME'];
            break;
        case 3 :
            $message = $lang['INPUTTITLE'];
            break;
        case 4 :
            $message = $lang['INPUTPASSWORD'];
            break;
        case 5 :
            $message = $lang['INPUTVERIFYPASSWORD'];
            break;
        case 6 :
            $message = $lang['INPUTSECURIYWORD'];
            break;
        case 7 :
            $message = $lang['INPUTHANDPHONE'];
            break;
        case 8 :
            $message = $lang['INPUTMOBILEPHONE'];
            break;
        case 9 :
            $message = $lang['INPUTEMAILL'];
            break;
        case 10 :
            $message = $lang['INPUTCONFIRMEMAIL'];
            break;
        case 11 :
            $message = $lang['INPUTADDRESS'];
            break;
        case 12 :
            $message = $lang['INPUTSELECTCOUNTRY'];
            break;
        case 13 :
            $message = $lang['INPUTSECURITYCODE'];
            break;
        case 14 :
            $message = $lang['INPUTCOMPANYNAMME'];
            break;
        case 15 :
            $message = $lang['INPUTCOMPANYADDRESSS'];
            break;
        case 16 :
            $message = $lang['INPUTCOMPANYMOBILEPHONE'];
            break;
        case 17 :
            $message = $lang['INPUTCOMPANYEMAILEL'];
            break;
        case 19 :
            $message = $lang['INPUTCOMPANYLOGOO'];
            break;
        case 20 :
            $message = $lang['INPUTCOMPANYLOCATIONN'];
            break;
        case 21 :
            $message = $lang['INPUTCOMPANYFAXNUMBER'];
            break;
        case 23 :
            $message = $lang['INPUTCOMPANYWEBSITE'];
            break;
        case 24 :
            $message = $lang['INPUTCOMAPNYOPENHOUR'];
            break;
        case 25 :
            $message = $lang['INPUTCOMPANYCLOSEHOUR'];
            break;
        case 26 :
            $message = $lang['INPUTCOMPANYLICENSE'];
            break;

        default :
            $message = "Unspecified error!";
    }
} else {
    $message = '';
}
$var = '<span style="color:#F00">*</span>';
?>

<!--end Error-->

<!--end social-->
<div class="row-fluid">
    <div>
        <?php if (!empty($error)): ?>    
            <div class="span12"> <?php
                $CURRENT_URL = W_ROOT;
// if we got an error then we display it here
                ?>
                <div class="alert alert-block alert-error fade in">
                    <button data-dismiss="alert" class="close" type="button">×</button>
                    <?php echo $lang['CHECK'] . '&nbsp;&nbsp; ' . $message ?>
                </div>
            </div> <?php endif; ?>

        <div class="span12">
            <!-- content -->
            <?php if (!empty($_GET['provider'])): ?>
                <form name="buyer_registerForm" id="registerForm" action="<?php echo W_ROOT; ?>/social/check.php?provider=<?php echo $provider ?>&return_url=<?php echo $return_url; ?>" method="post">
                <?php else: ?>
                    <form class="form-horizontal" name="buyer_registerForm" id="registerForm" action="<?php echo base_url; ?>account/process_register.php?action=register_b" method="post">
                    <?php endif; ?>
                    <div id="content" class="page">
                        <h1 class="page-title"><?php echo $lang['CREATEURACCOUNTT']; ?></h1>
                        <div class="page-content">
                            <?php if (empty($_GET['provider'])): ?>
                                <div class="row-fluid"><div class="span12 well well-small" align="center">
                                        <a href="<?php echo W_ROOT; ?>/social/social.php?provider=Facebook"><img src="<?php echo W_ROOT; ?>/images/social/facebook.png" height="40" alt="facebook"></a>   
                                    </div>
                                </div>
                            <?php endif; ?>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="well well-small">
                                        <fieldset><legend>Personal info</legend></fieldset> 
                                        <div class="control-group">
                                            <label class="control-label required"> Type <span class="required">*</span></label>
                                            <div class="controls">
                                                <label class="radio">
                                                    <input  type="radio" name="accounttype" value="3" onClick="display(this, 3, 2);" id="fos_user_registration_form_essential_type_0">
                                                    <?php echo $lang['MENU_BUYER']; ?></label>
                                                <label class="radio">
                                                    <input type="radio" name="accounttype" value="2" onClick="display(this, 2, 3);" id="fos_user_registration_form_essential_type_1">
                                                    <?php echo $lang['MENU_SELLER']; ?></label>
                                            </div>
                                        </div>
                                        <!--                                    <div class="row-fluid">
                                        <?php
                                        $field = array(
                                            Tblusertype::id,
                                            Tblusertype::name,
                                            Tblusertype::description,
                                            Tblusertype::display_image,
                                            Tblusertype::account_price
                                        );
                                        $result = select(Tblusertype::TABLE, $field, array(Tblusertype::status => 1), $order = 'id DESC');
                                        if (dbNumRows($result)) {
                                            $i = 1;
                                            while ($row = mysql_fetch_assoc($result)) {
                                                ?>                                            
                                                                                                                                    <div class="span6 box" style="padding:10px;min-height: 180px">
                                                                                                                                        <label>
                                                                                                                                        <div class="accountType_left">
                                                                                                                                            <div class="left_text">
                                                                                                                                                <input type="radio" name="accounttype" value="<?php echo $row[Tblusertype::id]; ?>" <?php echo (($row[Tblusertype::account_price] != 0) ? ' onClick="display(this,2,3);"' : ' onClick="display(this,3,2);"'); ?> /> 
                                                <?php
                                                if ($row[Tblusertype::account_price] == 0):
                                                    echo '<input type="hidden" value="free" name="freeaccount"/>';
                                                endif;
                                                ?>
                                                                                                                                                <b><?php echo $row[Tblusertype::name] ?> <span class="coloRed">( <?php
                                                if ($row[Tblusertype::account_price] == 0) {
                                                    echo 'Free';
                                                } else {
                                                    ?>
                                                                                                                                                                                $<?php
                                                    echo $row[Tblusertype::account_price];
                                                }
                                                ?>
                                                                                                                                                    )</span></b>
                                                                                                                                            </div>
                                                                                                                                        </div>
                                                                                                                                        <div class="accountType_right">
                                                <?php echo $row[Tblusertype::description]; ?>
                                                                                                                                        </div>
                                                                                                                                            </label>
                                                                                                                                    </div>
                                                                                                                                        
                                                <?php
                                                $i++;
                                            }// end while
                                        } else {
                                            
                                        }// end if
                                        ?>
                                                                        </div>-->


                                        <?php include_once(S_ROOT . '/account/free_account.php') ?>
                                        <div id="3" style="display: none;">                                       

                                        </div>
                                        <div id="2" style="display: none;">
                                            <?php include_once(S_ROOT . '/account/premium_account.php') ?>
                                        </div>
                                    </div>                        
                                </div>

                                <!--map-->
                                <?php
                                $table = Tblprovince::tblprovince;
                                $province = select($table);
                                ?>
                                <div class="span6">
                                    <div class="well well-small">
                                        <fieldset>
                                            <legend>Postal address</legend>
                                        </fieldset>
                                        <div class="control-group">
                                            <label for="Phovince" class="control-label required"><?php echo $lang['PROVINCE']; ?><?php echo $var; ?></label>
                                            <div class="controls">
                                                <input type="hidden" value="38" name="country_id"/>
                                                <select class="form_locate_province" name="txt_state" id="Phovince">
                                                    <option value=""><?php echo $lang['SHIP_PRO_STATE']; ?></option>
                                                    <?php while ($result_pro = mysql_fetch_array($province)) { ?>
                                                        <option value="<?php echo $result_pro[Tblprovince::id]; ?>" data-id="<?php echo $result_pro[Tblprovince::lat_long]; ?>"><?php echo $result_pro[Tblprovince::name]; ?></option>
                                                    <?php } ?>
                                                </select>
                                            </div>
                                            <div class="clear"></div>
                                        </div>
                                        <div class="control-group">
                                            <label for="District" class="control-label required"><?php echo $lang['UR_DISTRICT']; ?><?php echo $var; ?></label>
                                            <div class="controls">                                            
                                                <select class="form_locate_district" name="selectionDistrict" id="District" style="float: left;">
                                                    <option value=""></option>                                                
                                                </select>
                                                <div id="loading" style="display: none;"><img src="<?php echo base_url; ?>images/img/colorbox/loading.gif"/></div>
                                            </div>
                                            <div class="clear"></div>
                                        </div>
                                        <div class="control-group">
                                            <label for="lat" class="control-label"><?php echo $lang['GEO_MAP']; ?></label>
                                            <div class="controls">                                            
                                                <input type="text" id="latbox" name="lat" value="" >
                                            </div>
                                            <div class="clear"></div>
                                        </div>
                                        <div class="control-group">
                                            <?php include_once(S_ROOT . '/includefiles/google_map.php') ?>
                                            <div id="gmap" style="width: 100%; height: 375px"></div>
                                        </div>
                                    </div>
                                </div>
                                <!--end map-->
                            </div>
                            <script>
                                $(document).ready(function() {
                                    $(".inline").colorbox({inline: true, width: "80%"});
                                });</script>
                            <?php if (empty($_GET['provider'])): ?>
                            <div class="row-fluid">
                                <div class="control-group">
                                    <div class="controls">
                                        <label class="checkbox">                                        
                                        </label>
                                        <img src="<?php echo base_url; ?>captchar/CaptchaSecurityImages.php?width=100&height=40&characters=5" />
                                        <input id="security_code" name="security_code" onblur="secur();" />
                                    </div>
                                </div>
                            </div>
                            <?php endif;?>
                            <div class="row-fluid">
                                <div class="control-group">
                                    <div class="controls">
                                        <label class="checkbox">
                                            <input type="checkbox" class="required" id="newsletter" name="policy"><?php echo $lang['AGREE_TERMS']; ?>=><a class='inline' href="#inline_content"><?php echo $lang['POLICY']; ?></a>
                                        </label>
                                        <input type="submit" class="button" name="btnsubmit" value="<?php echo $lang['REGISTERR']; ?>"/>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
                <!--end content-->

                <!-- This contains the hidden content for inline calls -->
                <div style='display:none'>
                    <div id='inline_content' style='padding:10px; background:#fff;'>
                        <h2>Privacy Policy</h2>
                        Welcome to PsarInternet.com!<br />

                        By accessing PsarInternet.com you are agreeing to the following terms, which
                        are designed to make sure that PsarInternet.com works for everyone.<br />

                        This policy is effective September 1st, 2013.<br />

                        <h2>Using PSARINTERNET.com</h2>
                        As a condition of your use of PsarInternet.com you agree that you will not:<br />


                        <ul type="disc">
                            <li class="MsoNormal" style="line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">violate any Cambodian laws</span></li>
                            <li class="MsoNormal" style="line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">violate the Posting Rules;</span></li>
                            <li class="MsoNormal" style="line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">be false or misleading;</span></li>
                            <li class="MsoNormal" style="line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">post any threatening,
                                    abusive, defamatory, obscene or indecent material;</span></li>
                            <li class="MsoNormal" style="line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">distribute or contain spam,
                                    chain letters, or pyramid schemes;</span></li>
                            <li class="MsoNormal" style="line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">infringe any third-party
                                    right;</span></li>
                            <li class="MsoNormal" style="line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">distribute viruses or any
                                    other technologies that may harm PsarThmey.com or the interests or
                                    property of </span><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; font-size: 12.0pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">PsarInternet.com</span><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"> users;</span></li>
                            <li class="MsoNormal" style="line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">impose an unreasonable load
                                    on our infrastructure or interfere with the proper working of </span><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; font-size: 12.0pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">PsarInternet.com</span><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">;</span></li>
                            <li class="MsoNormal" style="line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">copy, modify, or distribute
                                    any other person's content without their consent;</span></li>
                            <li class="MsoNormal" style="line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">harvest or otherwise collect
                                    information about others, including email addresses, without their
                                    consent;</span></li>
                            <li class="MsoNormal" style="line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">bypass measures used to
                                    prevent or restrict access to </span><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; font-size: 12.0pt; mso-fareast-font-family: &quot;Times New Roman&quot;;">PsarInternet.com</span><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">;</span></li>
                            <li class="MsoNormal" style="line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">use any robot spider,
                                    scraper or other automated means to access PsarThmey.com and collect
                                    content for any purpose without our express written permission.</span></li>
                        </ul>
                        You are responsible for all information that you submit to PsarInternet.com
                        and any consequences that may result from your post. We reserve the right at
                        our discretion to refuse or delete content that we believe is inappropriate or
                        breeching the above terms. We also reserve the right at our discretion to
                        restrict a user's usage of the site either temporarily or permanently, or
                        refuse a user's registration.<br />

                        <h2>Abusing PSARINTERNET.com</h2>
                        As PsarInternet.com goal is to keep the website working properly and the
                        community safe, we would appreciate if you help us report problems, offensive
                        content and policy breaches to us using the reporting system.<br />


                        Without limiting other remedies, we may issue warnings, limit or terminate
                        our service, remove hosted content and take technical and legal steps to keep
                        users off PsarInternet.com if we think that they are creating problems or
                        acting inconsistently with the letter or spirit of our policies. However,
                        whether we decide to take any of these steps, remove hosted content or keep a
                        user off PsarInternet.com or not, we do not accept any liability for monitoring
                        PsarInternet.com or for unauthorized or unlawful content on PsarInternet.com or
                        use of PsarInternet.com by users.<br />

                        <h2>Fees and Services</h2>
                        Using PsarInternet.com is generally free, but we sometimes charge a fee for
                        certain services. If the service you use incurs a fee, you'll be able to review
                        and accept terms that will be clearly disclosed at the time you post your ad.
                        Our fees are quoted in United States dollar (U.S. dollar). We'll notify you of
                        changes to our fee policy by posting such changes on the site.<br />

                        Our fees are non-refundable, and you are responsible for paying them when
                        they're due. If you don't, we may limit your ability to use the services. If
                        your payment method fails or your account is past due, we may collect fees owed
                        using other collection mechanisms.<br />


                        <h2>Content</h2>
                        PsarInternet.com contains content from us, you, and other users. PsarInternet.com
                        is protected by copyright laws and international treaties. Content displayed on
                        or via PsarInternet.com is protected as a collective work and/or compilation,
                        pursuant to copyrights laws and international conventions. You agree not to
                        copy, distribute or modify content from PsarInternet.com without our express
                        written consent. You may not disassemble or decompile, reverse engineer or
                        otherwise attempt to discover any source code contained in PsarInternet.com.Without
                        limiting the foregoing, you agree not to reproduce, copy, sell, resell, or
                        exploit for any purposes any aspect of PsarInternet.com (other than your own
                        content). When you give us content, you are granting us and representing that
                        you have the right to grant us, a non-exclusive, worldwide, perpetual,
                        irrevocable, royalty-free, sub-licensable right to exercise the copyright,
                        publicity, and database rights to that content.<br />


                        <h2>Liability</h2>
                        Nothing in these terms shall limit our liability for fraudulent
                        misrepresentation, for death or personal injury resulting from our negligence
                        or the negligence of our agents or employees. You agree not to hold us
                        responsible for things other users post or do.<br />


                        We do not review users' postings and are not involved in the actual
                        transactions between users. As most of the content on PsarInternet.com comes
                        from other users, we do not guarantee the accuracy of postings or user
                        communications or the quality, safety, or legality of what's offered.<br />


                        In no event do we accept liability of any description for the posting of any
                        unlawful, threatening, abusive, defamatory, obscene or indecent information, or
                        material of any kind which violates or infringes upon the rights of any other
                        person, including without limitation any transmissions constituting or
                        encouraging conduct that would constitute a criminal offence, give rise to
                        civil liability or otherwise violate any applicable law.<br />


                        We cannot guarantee continuous, error-free or secure access to our services
                        or that defects in the service will be corrected. While we will use reasonable
                        efforts to maintain an uninterrupted service, we cannot guarantee this and we
                        do not give any promises or warranties (whether express or implied) about the
                        availability of our services.<br />


                        Accordingly, to the extent legally permitted we expressly disclaim all
                        warranties, representations and conditions, express or implied, including those
                        of quality, merchantability, merchantable quality, durability, fitness for a
                        particular purpose and those arising by statute. We are not liable for any
                        loss, whether of money (including profit), goodwill, or reputation, or any
                        special, indirect, or consequential damages arising out of your use of PsarInternet.com,
                        even if you advise us or we could reasonably foresee the possibility of any
                        such damage occurring. Some jurisdictions do not allow the disclaimer of
                        warranties or exclusion of damages, so such disclaimers and exclusions may not
                        apply to you. Despite the previous paragraph, if we are found to be liable, our
                        liability to you or any third party (whether in contract, tort, negligence,
                        strict liability in tort, by statute or otherwise) is limited to the greater of
                        (a) the total fees you pay to us in the 12 months prior to the action giving
                        rise to liability, and (b) 100 U.S. dollar.<br />

                        <h2>Personal Information</h2>
                        By using PsarInternet.com, you agree to the collection, transfer, storage
                        and use of your personal information by PsarInternet.com on servers located in
                        France, as further described in our Privacy policy.<br />

                        You also agree to receive marketing communications from PsarInternet.com unless
                        you tell us that you prefer not receive such communications.<br />

                        <h2>Resolution of disputes</h2>
                        If a dispute arises between you and PsarInternet.com, we strongly encourage
                        you to first contact us directly to seek a resolution by going to the PsarInternet
                        Help. We will consider reasonable requests to resolve the dispute through
                        alternative dispute resolution procedures, such as mediation or arbitration, as
                        alternatives to litigation. <br />

                        <h2>General</h2>
                        These terms and the other policies posted on PsarInternet.com constitute the
                        entire agreement between PsarInternet.com and you, superseding any prior agreements.<br />

                        This Agreement shall be governed and construed in all respects by the
                        Cambodian laws. You agree that any claim or dispute you may have against PsarInternet.com
                        must be resolved by the Cambodian courts. If we don't enforce any particular
                        provision, we are not waiving our right to do so later. If a court strikes down
                        any of these terms, the remaining terms will survive. We may automatically
                        assign this agreement in our sole discretion in accordance with the notice
                        provision below.<br />

                        We may update this agreement at any time, with updates taking effect when
                        you next post or 30 days after we post the updated policy on the site,
                        whichever is sooner. No other amendment to this agreement will be effective
                        unless made in writing, signed by users and by PsarInternet.com &nbsp;&nbsp;&nbsp;<a href="images/docs/Privacy Policy.pdf" target="_blank" title="Policy Psarinternet">Click get File PDF in Here!</a> <br />
                    </div>
                </div>
        </div>
    </div>
</div>